package com.topdt.jbpm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.topdt.jbpm.dao.ApplyCarDao;
import com.topdt.jbpm.model.ApplyCar;

@Service
@Transactional(readOnly = true)
public class ApplyCarService {
	@Autowired
	private ApplyCarDao applyCarDao;
	
	public List<ApplyCar> findApplyCarsByWorkId(String workId) {
		return applyCarDao.findApplyCarsByWorkId(workId);
	}
	
	public void save(ApplyCar applyCar) {
		applyCarDao.save(applyCar);
	}
	
	public void update(ApplyCar applyCar) {
		applyCarDao.update(applyCar);
	}
	
}
